# 结算中心

from selenium.webdriver.common.by import By
import time


class PageEcshopFrontClickOrders():
    def __init__(self, driver):
        self.driver = driver

    # 定位元素
    loc_front_click_submit_order = (By.XPATH, '/html/body/div[7]/div[1]/table/tbody/tr/td[2]/a')

    # 点击提交订单
    def front_click_submit_order(self):
        self.driver.find_element(*self.loc_front_click_submit_order).click()
        time.sleep(3)
